!macro customInstall
  DetailPrint "Register mcbot URI Handler"
  DeleteRegKey HKCR "mcbot"
  WriteRegStr HKCR "mcbot" "" "URL:mcbot"
  WriteRegStr HKCR "mcbot" "URL Protocol" ""
  WriteRegStr HKCR "mcbot\shell" "" ""
  WriteRegStr HKCR "mcbot\shell\Open" "" ""
  WriteRegStr HKCR "mcbot\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "AutoupdaterDemoKey" "$INSTDIR\autoupdater-demo.exe"
!macroend

!macro customUnInstall
  DeleteRegKey HKCR "mcbot"
  DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "AutoupdaterDemoKey"
!macroend